package com.redmaple.mapper;

import com.redmaple.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {
	@Select("SELECT * FROM  user; ")
	List<User> findUser();

	@Select("insert into user(name, age) values (#{name},#{age}); ")
	void insertUser(@Param("name") String name, @Param("age") Integer age);
}
